package com.ice.remoting.data;

import io.netty.channel.Channel;
import lombok.Data;

@Data
public class DeviceLiveInfo {

    // 最后更新时间
    private long lastUpdateTimestamp;
    // 心跳超时时间
    private int heartbeatTimeoutMillis;
    // 通道
    private Channel channel;
    // 客户唯一标识
    private String customerUniqueIdentity;

    public DeviceLiveInfo(long lastUpdateTimestamp, int heartbeatTimeoutMillis, Channel channel) {
        this.lastUpdateTimestamp = lastUpdateTimestamp;
        this.heartbeatTimeoutMillis = heartbeatTimeoutMillis;
        this.channel = channel;
    }
}
